package com.nanotime;

import android.app.Activity;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;

public class NanotimeActivity extends Activity {
    /** Called when the activity is first created. */
	static String TAG = "NANO";
	static long before;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        short i = 1;
        short b = 500;
        setContentView(R.layout.main);
        before = getTenThousandPerSec();
        while(i < b) {
//        	Log.e(TAG,"Time: "+ getTenMilliSec());
        	Log.e(TAG,"Time: "+ getTenThousandPerSec());
//        	Log.e(TAG,"Difference = "+ (getMicroSec() - before));
        	i++;
        }
    }
    private static  long getTenThousandPerSec() {
    	return System.nanoTime()/100000;
    }
}

